cmake_minimum_required(VERSION 3.10.0)
project(orb_slam_test VERSION 0.1.0 LANGUAGES C CXX)

include_directories(${THIRD_PATH}/Sophus
${PROJECT_ROOT_PATH}/orb_slam3/include
${PROJECT_ROOT_PATH}/orb_slam3/include/CameraModels
)

include_directories(${TARGET_SYSROOT}/usr/include/eigen3)

find_package(Boost REQUIRED COMPONENTS serialization)

aux_source_directory(. DIR_SRCS)

link_directories(${PROJECT_LIBRARY_OUTPUT_PATH}
    ${STATIC_LIBRARY_OUTPUT_PATH})

add_executable(${PROJECT_NAME} ${DIR_SRCS})
target_link_libraries(${PROJECT_NAME}
                    ${Boost_LIBRARIES}
                    orb_slam3
                    pthread
                    dl
)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -O3)
set_target_properties(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})


